
<table cellpadding="0" cellspacing="0" border="1" width="100%">
  <tr>
    <td  align="center"><%= render :partial => "chart_display_header.html" %></td>
  </tr>
  <tr >
    <td  align="center"><%= render :partial => "chart_display_body_col.html" %></td>
  </tr>
  <tr>
    <td>
      <h2><%=h Tag.find_by_id(params[:id].to_i).name %></h2>

    </td>
  </tr>
  <tr>
    <td>
      <h4>
        Blogs
      </h4>

    </td>
  </tr>
  <tr>
    <td>
      <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
          <th align="left" style="width: 30%">Title</th>
          <th align="left" style="width: 10%">Tags</th>
          <th align="left" style="width: 10%">Author</th>
          <th align="left" style="width: 30%">BlogURL</th>
          <th align="left" style="width: 20%">Published Date</th>
        </tr>
      </table>
    </td>
  </tr>
  <tr>

    <td>

      <div style="width:100%;height:400px; overflow: auto;  ">
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
          <% Gblog.find_by_sql("SELECT * FROM gblogs WHERE tag_id=#{params[:id]} ORDER BY publisheddate ASC").each do |gblog| %>
            <tr>
              <td style="width: 30%"><%=h gblog.title %></td>
              <td style="width: 10%"><%=h gblog.tags %></td>
              <td style="width: 10%"><%=h gblog.author %></td>
              <td style="width: 30%"><a href="<%=h gblog.blogURL %>"><%=h gblog.blogURL %></a></td>
              <td style="width: 20%"><%=h gblog.publisheddate %></td>
            </tr>
          <% end %>
        </table>
      </div>

    </td>
  </tr>
</table>
